<template>
	<div class="square" @click="handleClick">
		{{val}}
	</div>
	
</template>

<script>
	export default {
		name:"SquarComponent",
		methods:{
			handleClick(){
				this.$emit("squareclick",this.index)
			}
		},
		props:["index","val"]
	}
</script>

<style>
	.square{
		height: 70px;
		width: 70px;
		background-color: #fff;
		border: 1px solid #2C3E50;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 40px;
	}
</style>
